<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	template="/WEB-INF/template/template.xhtml">

	<ui:define name="conteudo">

		<h:form id="cadastro_cliente" prependId="false">
		
					<p:panel id="panel" header="Cadastro de Clientes">

				 <p:growl id="growl" showDetail="true" sticky="true" />

				<h:panelGrid columns="2" cellpadding="10">
					

					<p:outputLabel value="Nome:"/>
					<p:inputText id="nome" value="#{clienteBean.cliente.nome}" required="true"/>
					
					<p:outputLabel for="Cpf" value="Cpf:" />
					<p:inputMask id="Cpf" value="#{clienteBean.cliente.cpf}" mask="999.999.999-99"  required="true"/>
					
					<p:outputLabel value="Rg:"/>
					<p:inputText id="rg" value="#{clienteBean.cliente.rg}" required="true"/>	
					
				

				</h:panelGrid>
				
				<h:panelGrid columns="3" cellpadding="10">

				<p:commandButton value="Cancelar" action="../../administrador/principal/principal.xhtml" 	icon="ui-icon-check" />
				
				<p:commandButton value="Limpar" type="reset" icon="ui-icon-check" />
				
				<p:commandButton value="Cadastrar" update="@form" action="#{clienteBean.save_update()}"	icon="ui-icon-check" />
				
				</h:panelGrid>
			
			</p:panel>

		</h:form>

	</ui:define>
</ui:composition>